package cn.hxzy.common;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

@AllArgsConstructor
@NoArgsConstructor
@Getter
public enum CarTypeStatus {
    carTypeStatus_01(101,"半挂"),
    carTypeStatus_02(102,"全挂"),
    carTypeStatus_03(103,"前四后八");


    private Integer carTypeStatus;
    private String carTypeStatusName;

    public static String getCarTypeStatusValue(int index) {
        for (CarTypeStatus value : CarTypeStatus.values()) {
            if (value.getCarTypeStatus() == index) {
                return value.getCarTypeStatusName();
            }
        }
        return null;
    }

}
